<script src='jquery-1.7.2.min.js'></script>
<?php 
$client = new SoapClient(null, array(
	'location' => 'http://localhost/prestashop13/path/servidor/server.php',  
	'uri'      => 'http://localhost/prestashop13/path/servidor/',  		
	'trace'    => 1));

$result     = $client->User('cristianoboell@yahoo.com.br','cristianoboell','1aa123'); 

if (is_soap_fault($result)){
	trigger_error("SOAP Fault: (faultcode: {$result->faultcode},
	faultstring: {$result->faulstring})", E_ERROR);
}else{
   $email = $result['email']; 
   $passwd = $result['senha']; 

   //   print_r($result);

   echo "

    <style>
      #livre{
       width: 200px;
       height: 40px;
       border: 1px #ccc solid;
       background-color: #ccc;
      }    
    </style>
    <div id='livre'>
         Náo logado!
    </div>
        <script>

            $('#livre').load('../authentication_ext.php',{'SubmitLogin':'', 'email':'$email','passwd':'$passwd'});

        </script>";    
}
?>


<iframe src="../../index.php" width="1200" height="600"> </iframe> 


